/**
 * 功能:一键潜能列表
 */

var status = 0;

var 音符 = "#fEffect/CharacterEff/1032063/0/0#";
var 新 = "#fUI/UIWindow/Quest/icon5/1#";
var 小黄点 = "#fUI/UIPVP/MiniMapIcon/yellow#";
var UI0 = "#fEffect/CharacterEff/1051296/1/0#";
var UI1 = "#fEffect/CharacterEff/1051296/1/1#";
var UI2 = "#fEffect/CharacterEff/1051296/1/2#";
var UI3 = "#fEffect/CharacterEff/1051296/1/3#";
var UI4 = "#fEffect/CharacterEff/1051296/1/4#";
var UI5 = "#fEffect/CharacterEff/1051296/1/5#";

var UI11 = "#fEffect/EventEffect/EffectAttach/3110001/emblem1/1/0#";
var UI22 = "#fEffect/EventEffect/EffectAttach/3110001/emblem2/1/0#";
var UI33 = "#fEffect/EventEffect/EffectAttach/3110001/emblem3/1/0#";
var UI44 = "#fEffect/EventEffect/EffectAttach/3110001/emblem4/1/0#";
var UI55 = "#fEffect/EventEffect/EffectAttach/3110001/emblem5/1/0#";
var UI66 = "#fEffect/EventEffect/EffectAttach/3110001/emblem6/1/0#";
var UI77 = "#fEffect/EventEffect/EffectAttach/3110001/emblem7/1/0#";
var UI88 = "#fEffect/EventEffect/EffectAttach/3110001/emblem8/1/0#";
var UI99 = "#fEffect/EventEffect/EffectAttach/3110001/emblem9/1/0#";


var 音符横条 = 音符 + 音符 + 音符 + 音符 + 音符 + 音符 + 音符;
var 蓝星横条 = UI0 + UI1 + UI2 + UI3 + UI4 + UI5 + UI0 + UI1 + UI2 + UI3 + UI4 + UI5 + UI0 + UI1 + UI2 + UI3 + UI4;
var status = 0;
var typed = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			var selStr = "";
			selStr += "" + 音符横条 + "\r\n";
			selStr += "                #r#e " + cm.getServerName() + "一键潜能 #d#n#k\r\n\r\n";
			selStr += "#b 请选择一键潜能的位置： 装备自身为SS级才能使用本功能哦#k\r\n";
			selStr += "#b 需要条件：使用对应数量的点卷进行潜能强化#k\r\n";
			selStr += "     #k#L1#装备潜能第1条属性#l   #L4#附加潜能第1条属性#l\r\n";
			selStr += "     #L2#装备潜能第2条属性#l   #L5#附加潜能第2条属性#l\r\n";
			selStr += "     #L3#装备潜能第3条属性#l   #L6#附加潜能第3条属性#l\r\n\r\n\r\n";
			selStr += "" + 蓝星横条 + "\r\n";
			cm.sendSimpleS(selStr, 2);
		} else if (status == 1) {
			switch (selection) {
			case 1:
				cm.dispose();
				cm.openNpc(9400057, "第一条潜能1");
				break;
			case 2:
				cm.dispose();
				cm.openNpc(9400057, "第二条潜能1");
				break;
			case 3:
				cm.dispose();
				cm.openNpc(9400057, "第三条潜能1");
				break;
			case 4:
				cm.dispose();
				cm.openNpc(9400057, "第一条附加潜能1");
				break;
			case 5:
				cm.dispose();
				cm.openNpc(9400057, "第二条附加潜能1");
				break;
			case 6:
				cm.dispose();
				cm.openNpc(9400057, "第三条附加潜能1");
				break;
			default:
				cm.sendOk("该功能正在紧张进行制作中，请耐心等待。");
				cm.dispose();
				break;
			}
		}
	}
}
